package com.tjtt.gwm.service.impl;

import java.util.List;
import com.tjtt.gwm.dao.DbDao;
import com.tjtt.gwm.service.DbService;

public class DbServiceImpl implements DbService {
	private DbDao dbDao; 
	
	
	public DbDao getDbDao() {
		return dbDao;
	}


	public void setDbDao(DbDao dbDao) {
		this.dbDao = dbDao;
	}


	public void deleteData(Object object) {
		dbDao.deleteData(object);
	}

	
	public Object getDataById(Class clazz, Long id) {
		return dbDao.getDataById(clazz, id);
	}

	public void saveObject(Object object) {
		dbDao.saveObject(object);
	}

	
	public void updateObject(Object object) {
		dbDao.updateObject(object);		
	}
	
	public List queryDataBySql(String sql){
		return dbDao.queryDataBySql(sql);
	}

	public void exeSql(String sql) {
		dbDao.exeSql(sql);
	}
}
